<include file="public/min-header"/>
<div class="wrapper">
  <include file="public/breadcrumb"/>
    <section class="content">
    <div class="row">
      <div class="col-xs-12">
      	<div class="box">
           <nav class="navbar navbar-default">
			<div class="collapse navbar-collapse">
                <div class="navbar-form pull-left margin">
                      <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
               </div>
            </div>
           </nav>

        <!--新订单列表 基本信息-->
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title text-center">基本信息</h3>
            </div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <td>订单 ID:</td>
                        <td>订单号:</td>
                        <td>收货人:</td>
                        <td>电话:</td>
                        <td>订单状态:</td>
                        <td>下单时间:</td>
                    </tr>
                    <tr>
                        <td>{$order.order_id}</td>
                        <td>{$order.order_sn}</td>
                        <td>{$order.username}</td>
                        <td>{$order.phone}</td>
                        <td>{$shop_order_status[$order.order_status]}</td>
                        <td>{:date('Y-m-d H:i:s',$order.add_time)}</td>
                    </tr>
                    <tr>
                        <td colspan="6">收货地址：</td>
                    </tr>
                    <tr>
                        <td colspan="7">{$order.address}</td>
                    </tr>
                    <tr>
                        <td colspan="6">备注信息：</td>
                    </tr>
                    <tr>
                        <td colspan="7">{$order.user_note}</td>
                    </tr>

                    </tbody>
                </table>
            </div>
        </div>
        <!--新订单列表 商品信息-->
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title text-center">商品信息 </h3>
            </div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <td class="text-left">商品</td>
                        <td class="text-left">属性</td>
                        <td class="text-right">数量</td>
                        <td class="text-right">单品价格</td>
                        <td class="text-right">单品小计</td>
                        <!--<td class="text-right">操作</td>-->
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="orderGoods" id="good">
                        <tr>
                            <td class="text-left">{$good.goods_name}</td>
                            <td class="text-left">{$good.spec_key_name}</td>
                            <td class="text-right">{$good.goods_num}</td>
                            <td class="text-right">{$good.goods_price}</td>
                            <td class="text-right">{$good.goods_total}</td>
                            <!--<td class="text-right"><if condition="$order['order_status'] lt 2"><a href="javascript:void(0);" onclick="del_fun(this)" data-url="{:U('order/del_order_goods')}" data-id="{$good.rec_id}" class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a></if></td>-->
                        </tr>
                    </volist>

                    <tr>
                        <td colspan="4" class="text-right">小计:</td>
                        <td colspan="2" class="text-left">{$order.goods_price}</td>
                    </tr>
                    </tbody>
                </table>

            </div>
        </div>
        <!--新订单列表 操作信息-->
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title text-center">操作信息</h3>
            </div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <div class="row">
                            <td class="text-right col-sm-2"><p class="margin">当前可执行操作：</p></td>
                            <td colspan="3">
                                <div class="input-group">
                                	<foreach name="button" item="vo" key="k">
                                		<button class="btn btn-primary margin" onclick="ajax_submit_form('order-action','{:U('order/order_action',array('order_id'=>$order['order_id'],'type'=>$k))}',1);" type="button" id="confirm">
                                		{$vo}</button>
                                	</foreach>
                                </div>
                            </td>
                        </div>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        </div>


	  </div>
    </div> 
   </section>
</div>
</body>
</html>